import request from "@/utils/request";

// 头程对账-列表-详情-查看明细列表
export const transportCostList = (data) =>
  request({
    url: `/finance/tc-bill-detail/index`,
    method: "post",
    data,
  });

// 区域管理-详情
export const transportCostDetail = (data) =>
  request({
    url: `/finance/tc-bill-detail/fee`,
    method: "post",
    data,
  });

// 未提交单个费用项修改
export const initialUpdate = (data) =>
  request({
    url: `/finance/tc-bill-detail/update-fee`,
    method: "post",
    data,
  });

// 批量备注及确认
export const batchUpdate = (data) =>
  request({
    url: `/finance/tc-bill-detail/sure`,
    method: "post",
    data,
  });

// 获取单据的箱包列表
export const getBoxList = (data) =>
  request({
    url: `/finance/tc-bill-detail/boxes`,
    method: "post",
    data,
  });

// 区域管理-创建
export const createTransportCost = (data) =>
  request({
    url: `/channel/transport-cost/create`,
    method: "post",
    data,
  });

// 运价表明细-编辑
export const updateTransportCost = (data) =>
  request({
    url: `/channel/transport-cost/update`,
    method: "post",
    data,
  });

// 区域管理-删除
export const deleteTransportCost = (data) =>
  request({
    url: `/channel/transport-cost/delete`,
    method: "post",
    data,
  });

// 区域管理-启用禁用
export const statusTransportCost = (data) =>
  request({
    url: `/channel/transport-cost/status`,
    method: "post",
    data,
  });
//获取头程费用项
export const optsTcFeeConfig = (data) =>
  request({
    url: `/opts/tc-fee-config`,
    method: "post",
    data,
  });
  export const optsTcMainConfig = (data) =>
  request({
    url: `/opts/finance-tc-main-fee`,
    method: "post",
    data,
  });
//批量修改部门
export const billUpdateDepartment = (data) =>
  request({
    url: `/finance/tc-bill-detail/update-department`,
    method: "post",
    data,
  });
